home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 16
/
Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso
/
Aminet
/
util
/
batch
/
centre.readme
< prev
next >
Wrap
Text File
|
1996-11-04
|
1KB
|
40 lines
Short: Centre strings on a line
Author: krf101@york.ac.uk (Kevin Fairhurst)
Uploader: krf101@york.ac.uk (Kevin Fairhurst)
Type: util/batch
Want to centre strings in text files or from CLI?
But you don't want to have to count characters,
then divide by 2, then press space an exact number of times,
ooops, did you press it once too often? Start again ...
This is where 'Centre' comes in!
'Centre' is like a basic version of Echo. Whatever you type in as an
argument is output to the CLI or (via redirection) to a file. However, it
is centred on the line first.
Any lines of longer than 77 characters will be cut down to this number.
If you wish to use redirection, do no use it in the middle of a quoted
string!
ie Centre "Hello >RAM:Bob Bob!" will not work as planned!
Catch ya later ...
Kev
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
1016 721 29.0% 18-Sep-96 10:03:38 Centre
877 486 44.5% 17-Sep-96 13:37:24 Centre.readme
-------- ------- ----- --------- --------
1893 1207 36.2% 14-Oct-96 06:59:48 2 files